package com.good.child.bean.common;

import com.good.child.bean.BaseResponse;
/**
 * Create on: 2024/8/4
 * by Mr.Zhu
 * Description: 更新app
 */
public class AppVersion extends BaseResponse<AppVersion> {

    private String id;
    private String appId;
    private String appName;
    private String clientVersion;
    private String downloadUrl;
    private String updateLog;
    private int updateInstall;
    private String tolerantVersion;
    private String createTime;
    private String updateTime;
    private String upgradePackageSize;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getClientVersion() {
        return clientVersion;
    }

    public void setClientVersion(String clientVersion) {
        this.clientVersion = clientVersion;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getUpdateLog() {
        return updateLog;
    }

    public void setUpdateLog(String updateLog) {
        this.updateLog = updateLog;
    }

    public int getUpdateInstall() {
        return updateInstall;
    }

    public void setUpdateInstall(int updateInstall) {
        this.updateInstall = updateInstall;
    }

    public String getTolerantVersion() {
        return tolerantVersion;
    }

    public void setTolerantVersion(String tolerantVersion) {
        this.tolerantVersion = tolerantVersion;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpgradePackageSize() {
        return upgradePackageSize;
    }

    public void setUpgradePackageSize(String upgradePackageSize) {
        this.upgradePackageSize = upgradePackageSize;
    }

    public boolean isForceUpdate() {
//        是否强制安装 1强制2兼容
        return updateInstall == 1;
    }
}
